.historybook {
    height: 400px;
}

.book-container {
    margin-top: 20px;
    position: absolute;
    width: 800px;
    height: fit-content;
    display: flex;
    overflow: scroll;
}

.book-container-min {
    width: 200px;
}

#map {
    width: 100%;
    top: 0;
    bottom: 0;
    position: absolute;
}

#searchbar {
    position: absolute;
    top: 10px;
    left: 10px;
}

#catalog-container {
    position: absolute;
    top: 15px;
    right: 120px;
    width: 60px;
}

.toolbar {
    position: absolute;
    right: 50px;
    top: 10px;
    z-index: 100;
}

#catalog-dropdown-menu {
    width: 160px;
}

.sidebar {
    height: 100%;
    width: 360px;
    position: fixed;
    z-index: 10;
    background-color: #fafafa;
    font-size: 0.8rem;
}

.swiper-curousel-hidden {
    display: none;
}

.swiper-curousel-visible {
    display: block;
}

.swiper-slide-thumb-active {
    background-color: crimson;
    border-width: medium;
    overflow: auto;
}

#catalog-current {
    width: 100%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-chapter {
    font-size: 1rem;
    font-weight: bold;
    background-color: #fafafa;
}

.dropdown-item-chapter-child {
    padding-left: 2rem;
    font-size: 0.8rem;
    background-color: #fafafa;
}

.col-center-block {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.book-row {
    height: 100%;
}

.book-col-thumbs {
    width: 140px;
    height: 400px;
    margin-left: 15px;
    margin-right: 15px;
}

.template-container {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

.template-container hr {
    margin: 0rem 1em 0rem 1em;
}

.template-top-container {
    padding: 10px;
    height: 50%;
    display: inline-flex;
}

.template-bottom-container {
    padding: 10px;
    height: 50%;
}

.template-top-container hr {
    margin: 0.5rem 1em 0.5em 1em;
}

#left-top-text {
    text-align: center;
    width: calc(66% - 10px);
    overflow: scroll;
}


#left-top-text p {
    margin-bottom: 4px;
}

.poem-sub-title {
    font-size: 1em;
    font-style: italic;
}

.poem-title {
    font-size: 1.25em;
    font-weight: bold;
}

#right-top-img{
    left: 66%;
    width: 30%;
    height: 90%;
}

#right-top-img img {
    width: 100%;
    height: 100%;
}

.template-bottom-container p {
    margin-bottom: 4px;
}

#shangxi {
    overflow: scroll;
}

#zhushi {
    overflow: scroll;
}

#book-thumbs {
    width: 140px;
    height: 490px;
    margin-left: 12px;
    margin-right: 12px;
    overflow: scroll;
}

.book-thumbs-scale{
    transform: scale(0.2233);
    left: -235px;
    top: -157px;
    width: 600px;
    height: 400px;
    position: relative;
    pointer-events:none;
}

.book-pages-hide {
    display: none;
}

#book-pages {
    height: 400px;
    width: 600px;
    padding: 0;
    font-size: 16px;
    overflow: scroll;
}

.book-thumbs-item {
    overflow: hidden;
    padding: 3px;
    width: 140px;
    height: 93px;
    font-size: 2px;
    margin-bottom: 5px;
}

.book-thumbs-active {
    border: 3px solid crimson;
}

.book-pages-item {
    display: none;
}

.book-pages-active {
    display: block;
}

.book-col-curousel {
    position: relative;
    height: 400px;
    width: 600px;
    padding: 0;
    font-size: 16px;
}

.swiper-thumbs {
    height: 100%;
    font-size: 0.25rem;
}

.swiper-thumbs-slide {
    overflow: hidden;
    padding: 3px;
    width: 140px;
    font-size: 2px;
}

.swiper-curousel {
    height: 100%;
    font-size: 1rem;
}

.swiper-curousel-wrapper {
    height: 100%;
}

.swiper-curousel-pagination {
    margin-top: 5vh;
}

.page-container {
    height: inherit;
}

.pages {
    margin-top: 5px;
    margin-left: 5px;
    margin-bottom: 10px;
    z-index: 10;
}

.centered {
    margin: 0 auto;
}

.lefty {
    width: fit-content;
}

.righty {
    width: fit-content;
}

.light {
    color: #444;
    background-color: #fafafa;
}

.dark {
    color: #fafafa;
    background-color: #444;
}

.step {
    opacity: 0.25;
}

.step.active {
    opacity: 0.9;
}

.step div {
    line-height: 25px;
    font-size: 13px;
}

.step img {
    width: 100%;
}

@media (max-width: 750px) {
    #features {
        width: 90vw;
        margin: 0 auto;
    }
}


.info-layer {
    width: calc(100% - 525px);
    z-index: 10;
    background-color: #fafafa;
    font-size: 0.8rem;
    margin-left: 160px;
    top: 36px;
    bottom: 36px;
    position: absolute;
    overflow: scroll;
}


.info-layer-middle {
    width: 360px;
    right: 365px;
}

.info-layer-hide{
    display: none;
}

.layui-tab-item-fullscreen {
    font-size: 1.25rem;
}

.info-layer-title {
    background-color: #2F6BFF;
    color: white;
    display: inline-flex;
    width: 100%;
    align-items: center;
}

#info-layer-title {
    text-align: left;
    padding: 10px;
    font-size: 1rem;
    margin: 0px;
}

#info-layer-close{
    position: absolute;
    right: 0;
}

#info-layer-summary-title {
    text-align: left;
    padding: 15px;
    margin: 0px;
}

#info-layer-summary {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#info-layer-summary-content {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 15px 48px 15px 15px;
}

#info-layer-summary-arrow {
    position: absolute;
    width: 32px;
    height: 32px;
    right: 8px;
}

hr {
    margin-top: 0;
    margin-bottom: 0;
}

#info-layer-gallery-title {
    margin: 0px;
    padding: 15px;
}

.info-layer-gallery-images {
    padding: 15px;
}

.info-layer-gallery-img {
    width: calc(25% - 4px);
}

.info-layer-gallery-img-fullscreen {
    width: 12%;
}

.info-layer-gallery-img-right {
    margin-left: 0;
}

#info-layer-second-level {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: azure;
    top: 0px;
}

.info-layer-second-level-back {
    display: inline-flex;
    align-items: center;
    padding: 15px;
}

.info-layer-second-level-back p {
    margin-bottom: 0;
}

#info-layer-second-level-title {
    position: absolute;
    text-align: center;
    padding: 15px;
    left: 5rem;
    top: 0;
    right: 5rem;
    margin: 0;
}

#info-layer-second-level-content {
    padding: 15px;
    text-indent: 1.6rem;
}

.info-layer-second-level-hide {
    visibility: hidden;
}

.info-layer-second-level-show {
    visibility: visible;
}

.info-layer-middle-content p{
    text-indent: 2em;
    font-size: 0.8rem;
    margin: 6px 10px 6px 10px;
}

.info-layer-middle-title{
    font-size: 1rem;
}

#gallery {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

#gallery-back {
    display: inline-flex;
    align-items: center;
    color: white;
    background-color: black;
    padding: 8px;
    margin-left: 12px;
}

.gallery-title {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    height: 48px;
    align-items: center;
    display: flex;
}

.gallery-carousel {
    position: relative;
    padding-top: 24px;
    padding-bottom: 24px;
    margin-left: 15%;
    margin-right: 15%;
    height: calc(75% - 48px);
}

#gallery-carousel {
    height: 100%;
}

.gallery-carousel-slide {
    text-align: center;
}

.gallery-carousel-slide img {
    height: 100%;
}

.gallery-thumbs-slide {
    text-align: center;
}

.gallery-thumbs-slide img {
    height: 100%;
}

.gallery-thumbs {
    width: 100%;
    height: 25%;
}

#gallery-thumbs {
    height: 100%;
}

.gallery-show {
    visibility: visible;
}

.gallery-hide {
    visibility: hidden;
}